chapter 2 division algorithm for polynomials